<!DOCTYPE html>
<!-- saved from url=(0053)http://techbrood.com/threejs/docs/api/core/Face3.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<!--<base href="../../">--><base href=".">
		<script src="./list.js(1).下载"></script>
		<script src="./page.js.下载"></script>
		<link type="text/css" rel="stylesheet" href="./page.css">
	<link href="./prettify.css" rel="stylesheet"><link href="./threejs.css" rel="stylesheet"><script src="./prettify.js.下载"></script></head>
	<body>
		<h1>三角面（Face3）</h1>

		<div class="desc">
		三角面（Triangle face）。
		</div>


		<h2>代码示例</h2>

		<code class=" prettyprint"><span class="kwd">var</span><span class="pln"> normal </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> THREE</span><span class="pun">.</span><span class="typ">Vector3</span><span class="pun">(</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> </span><span class="lit">1</span><span class="pun">,</span><span class="pln"> </span><span class="lit">0</span><span class="pln"> </span><span class="pun">);</span><span class="pln">
</span><span class="kwd">var</span><span class="pln"> color </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> THREE</span><span class="pun">.</span><span class="typ">Color</span><span class="pun">(</span><span class="pln"> </span><span class="lit">0xffaa00</span><span class="pln"> </span><span class="pun">);</span><span class="pln">
</span><span class="kwd">var</span><span class="pln"> face </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> THREE</span><span class="pun">.</span><span class="typ">Face3</span><span class="pun">(</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> </span><span class="lit">1</span><span class="pun">,</span><span class="pln"> </span><span class="lit">2</span><span class="pun">,</span><span class="pln"> normal</span><span class="pun">,</span><span class="pln"> color</span><span class="pun">,</span><span class="pln"> </span><span class="lit">0</span><span class="pln"> </span><span class="pun">);</span></code>


		<h2>构造器（Constructor）</h2>

		<h3>Face3( <a href="javascript:window.parent.goTo(&#39;Integer&#39;)" title="Integer">a</a>, <a href="javascript:window.parent.goTo(&#39;Integer&#39;)" title="Integer">b</a>, <a href="javascript:window.parent.goTo(&#39;Integer&#39;)" title="Integer">c</a>, <a href="javascript:window.parent.goTo(&#39;Vector3&#39;)" title="Vector3">normal</a>, <a href="javascript:window.parent.goTo(&#39;Color&#39;)" title="Color">color</a>, <a href="javascript:window.parent.goTo(&#39;Integer&#39;)" title="Integer">materialIndex</a> )</h3>
		<div>
		a — 顶点索引A。<br>
		b — 顶点索引B。<br>
		c — 顶点索引C。<br>
		normal — 面法向量或顶点法向量数组。<br>
		color — 面颜色或顶点颜色的数组。<br>
		materialIndex — 材料索引。
		</div>

		<h2>属性（Properties）</h2>

		<h3><a href="javascript:window.parent.goTo(&#39;Face3.a&#39;)" target="_parent" title="Face3.a" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Integer&#39;)" title="Integer" id="a">a</a> </h3>
		<div>
		顶点索引A。
		</div>

		<h3><a href="javascript:window.parent.goTo(&#39;Face3.b&#39;)" target="_parent" title="Face3.b" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Integer&#39;)" title="Integer" id="b">b</a> </h3>
		<div>
		顶点索引B。
		</div>

		<h3><a href="javascript:window.parent.goTo(&#39;Face3.c&#39;)" target="_parent" title="Face3.c" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Integer&#39;)" title="Integer" id="c">c</a> </h3>
		<div>
		顶点索引C。
		</div>

		<h3><a href="javascript:window.parent.goTo(&#39;Face3.normal&#39;)" target="_parent" title="Face3.normal" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Vector3&#39;)" title="Vector3" id="normal">normal</a> </h3>
		<div>
		面法向量。
		</div>

		<h3><a href="javascript:window.parent.goTo(&#39;Face3.color&#39;)" target="_parent" title="Face3.color" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Color&#39;)" title="Color" id="color">color</a> </h3>
		<div>
		面颜色。
		</div>

		<h3><a href="javascript:window.parent.goTo(&#39;Face3.vertexNormals&#39;)" target="_parent" title="Face3.vertexNormals" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Array&#39;)" title="Array" id="vertexNormals">vertexNormals</a> </h3>
		<div>
		3个顶点法向量的数组。
		</div>

		<h3><a href="javascript:window.parent.goTo(&#39;Face3.vertexColors&#39;)" target="_parent" title="Face3.vertexColors" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Array&#39;)" title="Array" id="vertexColors">vertexColors</a> </h3>
		<div>
		3个顶点颜色的数组。
		</div>


		<h3><a href="javascript:window.parent.goTo(&#39;Face3.materialIndex&#39;)" target="_parent" title="Face3.materialIndex" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Integer&#39;)" title="Integer" id="materialIndex">materialIndex</a> </h3>
		<div>
		材料索引 (指向 <a href="javascript:window.parent.goTo(&#39;多种材料(MultiMaterial)&#39;)" title="多种材料(MultiMaterial)">MultiMaterial.materials</a>).
		</div>

		<h2>方法（Methods）</h2>

		<h3><a href="javascript:window.parent.goTo(&#39;Face3.clone&#39;)" target="_parent" title="Face3.clone" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Face3&#39;)" title="Face3" id="clone">clone</a> ()</h3>
		<div>
		创建一个新的Face3克隆对象。
		</div>


		<h2>源代码</h2>

		<a href="https://github.com/mrdoob/three.js/blob/master/src/core/Face3.js" target="_blank">src/core/Face3.js</a>
	

</body></html>